package com.tongda.core.enums;

import com.tongda.core.common.Constants;

public enum DishesTypeEnum {
	DISHES("1", "菜肴"), DISHES_SET("2", "套餐");

	public final static String enumCode = "DishesType";
	public final static String enumName = "菜肴类型";

	private String code;
	private String desc;

	DishesTypeEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public static String getDesc(String code) {
		for (DishesTypeEnum status : DishesTypeEnum.values()) {
			if (status.getCode().equalsIgnoreCase(code)) {
				return status.getDesc();
			}
		}
		return "";
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
